<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<body>
<script type='text/javascript'>
var checkBrowser = false;
function checkPlatform() {
	var ua = navigator.userAgent.toLowerCase();
	if(ua.indexOf('windows') != -1) {
		return 'windows';
	}
	else if(ua.indexOf('ipad') != -1) {
		return 'ipad';
	}
	else if(ua.indexOf('ipod') != -1) {
		return 'ipod';
	}
	else if(ua.indexOf('iphone') != -1) {
		return 'iphone';
	}
	else if(ua.indexOf('mac') != -1) {
		return 'apple';
	}
	else if(ua.indexOf('android') != -1) {
		return 'android';
	}
	else if(ua.indexOf('linux') != -1) {
		return 'linux';
	}
	else if(ua.indexOf('nokia') != -1) {
		return 'nokia';
	}
	else if(ua.indexOf('blackberry') != -1) {
		return 'blackberry';
	}
	else if(ua.indexOf('freebsd') != -1) {
		return 'freebsd';
	}
	else if(ua.indexOf('openbsd') != -1) {
		return 'openbsd';
	}
	else if(ua.indexOf('netbsd') != -1) {
		return 'netbsd';
	}
	else if(ua.indexOf('opensolaris') != -1) {
		return 'opensolaris';
	}
	else if(ua.indexOf('sunos') != -1) {
		return 'sunos';
	}
	else if(ua.indexOf('os\/2') != -1) {
		return 'os2';
	}
	else if(ua.indexOf('beos') != -1) {
		return 'beos';
	}
	else if(ua.indexOf('win') != -1) {
		return 'windows';
	}
}

if(checkBrowser){
	if(checkPlatform()=="windows"){
		window.location="tip.jsp";
	}else{
		window.location="login.jsp";
	}
}else{
	window.location="login.jsp";
}

</script>
</body>
